package com.qf.ge.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

@TableName(value = "dts_groupon")
public class DtsGroupon {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联的订单ID
     */
    @TableField(value = "order_id")
    private Integer orderId;

    /**
     * 参与的团购ID，仅当user_type不是1
     */
    @TableField(value = "groupon_id")
    private Integer grouponId;

    /**
     * 团购规则ID，关联dts_groupon_rules表ID字段
     */
    @TableField(value = "rules_id")
    private Integer rulesId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 创建者ID
     */
    @TableField(value = "creator_user_id")
    private Integer creatorUserId;

    /**
     * 创建时间
     */
    @TableField(value = "add_time")
    private Date addTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 团购分享图片地址
     */
    @TableField(value = "share_url")
    private String shareUrl;

    /**
     * 是否已经支付
     */
    @TableField(value = "payed")
    private Boolean payed;

    /**
     * 逻辑删除
     */
    @TableField(value = "deleted")
    private Boolean deleted;

    public static final String COL_ID = "id";

    public static final String COL_ORDER_ID = "order_id";

    public static final String COL_GROUPON_ID = "groupon_id";

    public static final String COL_RULES_ID = "rules_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_CREATOR_USER_ID = "creator_user_id";

    public static final String COL_ADD_TIME = "add_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_SHARE_URL = "share_url";

    public static final String COL_PAYED = "payed";

    public static final String COL_DELETED = "deleted";

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取关联的订单ID
     *
     * @return order_id - 关联的订单ID
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 设置关联的订单ID
     *
     * @param orderId 关联的订单ID
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取参与的团购ID，仅当user_type不是1
     *
     * @return groupon_id - 参与的团购ID，仅当user_type不是1
     */
    public Integer getGrouponId() {
        return grouponId;
    }

    /**
     * 设置参与的团购ID，仅当user_type不是1
     *
     * @param grouponId 参与的团购ID，仅当user_type不是1
     */
    public void setGrouponId(Integer grouponId) {
        this.grouponId = grouponId;
    }

    /**
     * 获取团购规则ID，关联dts_groupon_rules表ID字段
     *
     * @return rules_id - 团购规则ID，关联dts_groupon_rules表ID字段
     */
    public Integer getRulesId() {
        return rulesId;
    }

    /**
     * 设置团购规则ID，关联dts_groupon_rules表ID字段
     *
     * @param rulesId 团购规则ID，关联dts_groupon_rules表ID字段
     */
    public void setRulesId(Integer rulesId) {
        this.rulesId = rulesId;
    }

    /**
     * 获取用户ID
     *
     * @return user_id - 用户ID
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置用户ID
     *
     * @param userId 用户ID
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取创建者ID
     *
     * @return creator_user_id - 创建者ID
     */
    public Integer getCreatorUserId() {
        return creatorUserId;
    }

    /**
     * 设置创建者ID
     *
     * @param creatorUserId 创建者ID
     */
    public void setCreatorUserId(Integer creatorUserId) {
        this.creatorUserId = creatorUserId;
    }

    /**
     * 获取创建时间
     *
     * @return add_time - 创建时间
     */
    public Date getAddTime() {
        return addTime;
    }

    /**
     * 设置创建时间
     *
     * @param addTime 创建时间
     */
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取团购分享图片地址
     *
     * @return share_url - 团购分享图片地址
     */
    public String getShareUrl() {
        return shareUrl;
    }

    /**
     * 设置团购分享图片地址
     *
     * @param shareUrl 团购分享图片地址
     */
    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    /**
     * 获取是否已经支付
     *
     * @return payed - 是否已经支付
     */
    public Boolean getPayed() {
        return payed;
    }

    /**
     * 设置是否已经支付
     *
     * @param payed 是否已经支付
     */
    public void setPayed(Boolean payed) {
        this.payed = payed;
    }

    /**
     * 获取逻辑删除
     *
     * @return deleted - 逻辑删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * 设置逻辑删除
     *
     * @param deleted 逻辑删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }
}